package com.Design.AbstractFacPattern;

import com.Design.AbstractFacPattern.Impl.Color;
import com.Design.AbstractFacPattern.Impl.Shape;

public class AbstractFacDemo {

    public static void main (String [] args){
        AbstractFactory factory = new AbstractFactory();
        AbstractColor color = new AbstractColor();

        Color color1 = color.getColor("red");
        Shape shape  =factory.getShape("Circle");

        color1.color();
        shape.draw();
    }
}
